export function fetchList() {
  const data = {
    "code": 200,
    "message": "操作成功",
    "data": [{
      "id": 98,
      "goodsId": 27,
      "skuCode": "201808270027001",
      "price": 2699.00,
      "stock": 97,
      "lowStock": null,
      "sp1": "黑色",
      "sp2": "32G",
      "sp3": null,
      "pic": null,
      "sale": null,
      "promotionPrice": null,
      "lockStock": -24
    }, {
      "id": 99,
      "goodsId": 27,
      "skuCode": "201808270027002",
      "price": 2999.00,
      "stock": 100,
      "lowStock": null,
      "sp1": "黑色",
      "sp2": "64G",
      "sp3": null,
      "pic": null,
      "sale": null,
      "promotionPrice": null,
      "lockStock": 0
    }, {
      "id": 100,
      "goodsId": 27,
      "skuCode": "201808270027003",
      "price": 2699.00,
      "stock": 100,
      "lowStock": null,
      "sp1": "蓝色",
      "sp2": "32G",
      "sp3": null,
      "pic": null,
      "sale": null,
      "promotionPrice": null,
      "lockStock": 0
    }, {
      "id": 101,
      "goodsId": 27,
      "skuCode": "201808270027004",
      "price": 2999.00,
      "stock": 100,
      "lowStock": null,
      "sp1": "蓝色",
      "sp2": "64G",
      "sp3": null,
      "pic": null,
      "sale": null,
      "promotionPrice": null,
      "lockStock": 0
    }]
  }

  return {
    url: 'sku/list',
    type: 'post',
    data: data
  }
}

export function update() {

  const data =
  {
    "code": 200,
    "message": "操作成功",
    "data": []
  }

  return {
    url: 'sku/update',
    method: 'post',
    data: data
  }
}
